package com.common.mybatis;

import com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator;
import com.util.MyUUID;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class CommonIdentifierGenerator extends DefaultIdentifierGenerator {

    @Override
    public String nextUUID(Object entity) {
        return MyUUID.createStrId();
    }
}
